package scanpackage.service.impl;

import org.springframework.stereotype.Service;
import scanpackage.annotation.UseCache;
import scanpackage.service.IHelloService;

@Service
public class HelloServiceImpl implements IHelloService {
    @Override
    @UseCache
    public String sayHello(String query) {
        System.out.println("如果使用了缓存则不会经过这里");
        return "Hello "+query+"!";
    }
}